#include<iostream>
#include"log.hpp"
#include"PollServe.hpp"
using namespace LogModule;

void Usage(const char *s)
{
    std::cout<<s<<" port"<<std::endl;
}
int main(int argc,char*argv[])
{
    ENABLE_CONSOLE_LOG_STRATEGY();
    if(argc!=2)
    {
        Usage(argv[0]);
        return 0;
    }
    std::unique_ptr<PollSreve> ptr=std::make_unique<PollSreve>(std::stoi(argv[1]));
    ptr->Start();
    return 0;
}